refactor marker
doctests for markers