remove usage of deprecated API