moved some methods to public