add few useful functions