improve some lines' code quality