buf check edit