* add getRelative snippet