have total probability working