added in error messages