temp variable from string to int
changed temp to float