update deprecated syntax