adding logic to support random list selection