solve the errors