fixed grappa tuple counting