added AOI functionality