removed semicolon error + refactoring