replaced line with buffer