adding an optimization