fixed warnings from deprecated code