extract method