clear func in ctr