fixed some public/private/protected declarations