using students as treshold for collapsing works again
last bits of refactoring and clean up finished