corrected clean(), globals moved to f0()
f5. $REL corrected rewrite