graph working, ready for pi