verfiication of cycle complete and got a start on randomization see comments in code