implemented all error messages