fix deprecated variable