add manhattan distance