inserted tuple and updated index