updating to match web api