added iv utility functions