added def to markedit