add rotations to s-block and to z-block