optimizing for inputs vs outputs

need a few more hours on this - sorry