update shape