added functionality to read number and set number to all registers