added fct to main_ap_round_8