updated normalize
style corrections