add working version of lookup