cleanup complex