better AddCodeMarking