add small functions.
fix int64 type bug.