invoke classes at the end