creating new and index