refactoring the statement