rebuild classes