changed error with print message