now return previous version code so you can handle null case