Make index code prettyer