updated usages of deprecated methods