added debugging to time for stats