removed some confusing cruft from marker generation code