changed from fixed test time to real time