add clear fuction