adding the deprecated code