changed behavior of createGraph