set default style to auto