fixes missing semi-colons and some text