cleaning up bufferincomingdata