normalize function for later