made some minor changes to random section