update lookup function