+add clear function
form typisation