shift function body instruction parsing out of generator