add the mark and grep