LPS-34804 replace deprecated method