made draw function