Normalizing features code