added good iv code