changed timestamp to nanos