updating default and index