change select query for get machine list