fixed two unused_mut warnings