preparing zap apple code