added another util function