added print statement for map to see if it was populated correctly