using CalBlock to calculate offsets