update the previous lookup function