additional helper function in utility.