added mark function