added deadband, needs to be tested