updated to the version using a real bcd converter