removed unneccessary .compact array method