removed allocations from onDraw