tweak index code block