update chain and bed