added a wraper for range