trying to fix error messages