update public/private to boolean