added reinit functionality