remove print statements to speed up (hopefully)