need to get value from resource, rather than uninstantiated local variable