finished first draft scalar reg file