fixing function that builds zip