updated clear all method