avoid deprecated warning