isolating TimeStamp code