[CleanCode] extract method
[CleanCode] rename function