changed alu logic to final_value