added function to upgradePlants