pass encoderNum and value as separate parameters to observer