after (unsuccessfully) attempting to remove 'window' as a passed argument