lookup function still does'nt work