correct error messaging