extract method and pull up