fixing the old deprecated class