adding timing
adding logging to see progress