removed n_outputs variable