resource management fixed