finish lookup table for my partition algom