add approaching function