decomplexified the lookup key code