smoothness term should be squared