added range to constructor