arrays are now emptied by setting their length property to zero