removed duplicate inputs and outputs