change name of variable, conflicts with enum with detector types