removes extra semicolon