format resources