modify logic of appendTimestamp