added two methods in tasks