update the singleLine calculate method.
update the singleLine calculate method.
Merge remote-tracking branch 'origin/master'