changed atoi to atof