implemented ensure method for itemranges