removed all the commented lines. printfs for timing debug