updated clear function