handle empty case for lookup