removed misplaced error message