fix the deprecated code