purge deprecated code