figure is working