change each to support objects