changed i/o to have hash map