removed unnecessary .each