new version with fixed omega and sigma in demarcation