add some function utils