added g constant