fix for deprecated code