implemented clear and setArray for Setting