containsPolygon added and some other useful fct