update dependency and fix deprication warning