first 2 data writes are correct
refactored the rtl