everything works, but need correct error messages