reworked mark functions, now they can update data without deleting it