how to use the lookup function