extract method to private section