fix utility function signature