modify pseudocode related to sigma