print when writing to reg