added quad() and rect()