changed linked list in hashmap to vector