index loop and header next fixed