update depreceted functions