added function.clp