removed some warnings (deprecated methods)