change public/private to var