modify syn_task functoin