changed protected to public