gets rid of unneccessary semicolon