update relative func