implement resolve