clear function added