changed &mut[] to Vec