Change deprecated methode