refactoring semicolon