remove not used buffer variable