variable rename and extract method