finished gamma_p.h