added class methods to reinit function