add shape optimizer