added in the looking at past data for normalizing