can we just use calculateallpath() directly?