tried sprintf ostreams, no luck