fix court restriants