resolving error