errors are beautified and removed