added loop in setup to set input array sizes based on their connected array size