move method to public