Replace unnecessary array