revert building extra dict with a for loop