fixed formatting and double checked graph output