trying to fix the area calculation