a machine works and stops