normalizing input