functions added for each output