added polygon drawing