added cls function