patch marker functions