arrange the resources