changes to block-shift script