string to int coversions

made sure strings were converted to integer