add jsm as distance