Replaced ~ with box and Box<T>