cleaned repairPL code + works when value NOT in list given