changed the wrong binary to decimal conversion