reconstruct the class