fix
content-based distance function done, rev0