sample index gen by haml