changed to windowed mode for testing