toggle public/protected