changing string to int for comparisons