finished gf_mult() function