fix deprecated usage