added cdl function