commented out some debug prints to speed up