substituting atof for unsupported stof function