keep the error check just for errors