add math, tick, sleep function
add hash function