g in an array