implemented block repositioning