removed undesired reference to window