created helper function getZip to remove functionality from view