Begining of soft decoder