adding attributes for inputs and outputs