lambda now capable of distinguishing between errors and void statements