refactor, adding skeleton index/deIndex