dynamic graph now works