refact

extract method