changed vector to hashmap for treats