set public/private