use snprint/seprint not sprint.