tweaks to random layout process
adjust random layout