cleaning up textual errors