use parseInt to convert array values to numbers