removed redundancy in sameCoef definition