for both g