change tasks list to hash