fixed randomizing twice