added random selection