added recursion depth and enabled functions without return stmts