fixed the definition of gamma_p