remove deprecated from method which has no alternative