changed reserved variable name 'native' to 'isnative'