created a clj->nasty function, to faclitate functional legality checking