removing random matrix routine.
clean up code