anchor.diff:  	program = map_id
   
   	//clear the items from the previous program
  -	for (var/_item in spawned)
  -		var/obj/holo_item = _item
  -		derez(holo_item)
  -
  -	for (var/_effect in effects)
  -		var/obj/effect/holodeck_effect/holo_effect = _effect
  +	for(var/holo_atom in spawned)
  +		derez(holo_atom)
  +
  +	for(var/obj/effect/holodeck_effect/holo_effect as anything in effects)
   		effects -= holo_effect
   		holo_effect.deactivate(src)
   
   	//makes sure that any time a holoturf is inside a baseturf list (e.g. if someone put a wall over it) its set to the OFFLINE turf
   	//so that you cant bring turfs from previous programs into other ones (like putting the plasma burn turf into lounge for example)
  -	for (var/turf/closed/holo_turf in linked)
  -		for (var/_baseturf in holo_turf.baseturfs)
  -			if (ispath(_baseturf, /turf/open/floor/holofloor))
  -				holo_turf.baseturfs -= _baseturf
  +	for(var/turf/closed/holo_turf in linked)
  +		for(var/baseturf in holo_turf.baseturfs)
  +			if(ispath(baseturf, /turf/open/floor/holofloor))
  +				holo_turf.baseturfs -= baseturf
   				holo_turf.baseturfs += /turf/open/floor/holofloor/plating
   
   	template = SSmapping.holodeck_templates[map_id]
  
positive.code: 				checked |= emag_programs
  			var/valid = FALSE //dont tell security about this
  
  			for (var/prog in checked)//checks if program_to_load is any one of the loadable programs, if it isnt then it rejects it
  				var/list/check_list = prog
  				if (check_list["id"] == program_to_load)
  					valid = TRUE
  					break
  			if (!valid)
  				return FALSE
  			//load the map_template that program_to_load represents
  			if(program_to_load)
  
negative.code: 
  ///this is what makes the holodeck not spawn anything on broken tiles (space and non engine plating / non holofloors)
  /datum/map_template/holodeck/update_blacklist(turf/placement, list/input_blacklist)
  	for(var/turf/possible_blacklist as anything in get_affected_turfs(placement))
  		if (possible_blacklist.holodeck_compatible)
  			continue
  		input_blacklist += possible_blacklist
  