changed Hashmap method to static