cell index was off by one.
Added use of apperance data.