avoiding error messages