finally seem to have the string to double conversion working