added clear functions