changing methods to public