implement basic mark feature.