prevent resource waste