revert to previous version code