colpeted the graphcal part