trying to fix the mate command