tweaked error message print out