added index for host order in matrix