remove use of obsolete method