better approach to interning values