fix deprecated warning message