changed deprecated Methods