added some methods to Task