draws task in the same order as they are provided in task array