pattern transformation memory