modified kill all buffer