updates restadapter, removes deadcode