put inputs/outputs into layer