endwise - add end to def, if ...