updated getTimestamp() definition