fixed lsr bug where out[2] was never set