fixed bugs caused by introducing time into temp data