refactor index users