move method to different class