mapping input to output columns