area calculation for polygons now working