change clear to deleteAll