added new execution algorithm to task execution