scan revert to old code