set array to null instead of empty space to accomodate IE