change valueOf to parseInt