fixing task array