fixing eachItem functions