alternate way to write registers