refacotr: reduce line/method