fix unnecessary array