added mark function API