started work on random selection