associate labels with their respective inputs