add flag to switch pair spectrum from kz^2 to cos