removed redundant key generation from get IV