act machine working principle