help func and utilites