fixed some minor things. needed to pick a random seed, first of all. secondly, writing L2 back to R