added polygon method in utilities