wrote code for read_act_file