this takes precedence over variables.owns in the case where there are duplicate keys