modified for lookup search