better releasing of resources