work on binary sum