fixing index para and foo name