manage resources with using