optimize setting action