replace deprecated syntax