added checkEditable