created index and style