changed the free machines datagrid code