add the make_mark function for duplicate code