added time func and hash token