added switch between g1, g1_c in RHS for KM