implements FCM_Distance