refactor:replace finction show data array