implemented mark toggling