Influence of pairing on the rotational states in sd shell nuclei