finish lookup func ut has seg fault