changed index for moments