changed range_ generator to set