remove random debug prints
get rid of a loop to make it slightly faster
a little bit of an additional speedup.