first version of timestamp generation