fix pair.php for lower version of php