Use generic ret from parse() to switch to foreach