tried remove call to window