removed unnecessary clearMark