clear function now operable