switched to nano time for timing