fix extra line printing for define and lambda