simplify and support statements before the last expr