removing hashmap as it was not needed.