change messageid from private to protected