fixing unzip logic