betterized the timestamp