refactor calls of obsolete method which does not exist anymore