remove deprecated warning