add argument for index size