remove unnecessary empty array