fixed bug in challenge submissions. refreshes input array variable
concluding merge