update the passing object