picking of polygon is working now