issues fixed
removed clear function