generate courts and it does not work right now