put the resource let outside the resource application