cleanup cdls() definition