fixed order of arguments for making graph