adding aoi calculations
working create aoi