Fixed depraceted method