added clearAll method