added API for mark