resolves errors