CheckIn function

Change name of index and index-1