add def check_edit in class note