adding G + fix bug with I