refactoring timestamp to timestr.