clear on the form and some unused code
todo