patched up bug using stringstream to convert a number to std:string object