utility modified to make pylint happy