added clear condition