changes show_all to index