fixed compile error due to missing deprecated declaration