fixed comments in lookup function