work on the errors