consider non-arrays too