added yet another utility function