changed margins index