Why is this taking a ref then dereferencing? (same below)