optimize Settings