changed a few methods to public