remove errors on front end