initialized window_size correctly