bug fixed no closed quando n havia exame
further optimization do spice