added hashmap and treemap methods