adjust classroom logic to perform better