trying to implement complex object cleaning, not working yet