min-squares - minimizing output.