set the correct court