changed zip extract function