added swift mode