fix deprecated syntax