add function for marked.