removed unnecessary call of Array#compact