fixed loop drawing thing