add if statement for mark command