working binding for r names and input