add polygon method added