fixed encryption bug- added iv on every cycle