added clear function (only for testing)