fix swift syntax