fixed stalk function (I hope)