fix deprecated method in review