get graph working