make use of two previously  depricated methods