decoder for motor values working