changed hash pair to <string, int>