added options for max brightness and dim