don't wirte function_exit, when just below 'else'