Stop to use deprecated method