added resetInstance