implementing resolve