fixed README to avoid use of deprecated method