modified BlockStacker