added range restrictions