removed loss function from StructuredMachine