completed clear and remove methods