resolve errors.