changed to use each because I didnt understand it