remove debug and fill line buff