update for new Rust syntax