properly normalise the data