more compatibility with different version of library