normalize input