working index and create