changed way running mean is removed during fold