change the state from private to public it the last two methods