some useful functions met in my job