error message in the wrong place