getting rid of error messages