updating Machine  model