added defer example