added swift syntax