need to rewrite hashmap to not use linkedlist