trying to get graph working