added for each in current foom function