Why do we need foreach here?