trying to make an error message work