removed deprecated code in getsuper