added clear func