removing deprecated code convertTo.py