adding dowork method