renamed gamma to lookup_map