got desired result printing out time then occurence