remove deprecated warning for 2.2