add keeptask method