added the partner in the if statement