added the 2bcgskew code