took out task array code