beginning of graphics