add parameter to control range and extended range for annotations