implemented 'zip' functionality