remove of duplicate method for creating dynamic index