declaring a resource