center and normalize