update code in pre-backup and register backup