fixed wrong graph arguments