fix bug and implementation the 1d mult line function