update the gramma