updated helper function so that it isn't mistakenly run as a test by nose