changed v1 to match the endpoints