optimize the code in add binary.