CLEARMARKS function