modified lookup_table