before start graphics