resolve errors