fixing indentaion - simplifying create all index action