using del instead of clean, made some changes to the chaining making sure things get done in the right order.