methods changed from private to public