removed obsolete API usage: reduced warning count from 71 to 67