added lookup function