changed encoder value from 250 to 360