remove unnecessary array