removing buffer