binary to bcd conversion is working fine