added "complicating" function (may be better than shortest path)