changed getQuad to return pointer, not reference