Flatten sub finish : parameter, input declaration