patched with beta