add offset computation Palette private methods