added beta code