fix issue 14, add region filtering