add an optimize case