resolve the errors