defining ga as a queue function iff ndef