optimization of menu