removed extraneous window code