modifying temporarily index