clean deprecated code