change to replace to_string() for lib compatibility