bet function completed