determining regions of interest