parameters and costs results in one array