renamed index to unified so it wont conflict