initialize resource