resource cleanup fixed