added statistics to machines and customers
tmp fix
fixed bug