code_append now always returns the last statement in the list