Shouldn't you check the r against something here?