fixed deprecated syntax