added normalise to simputil