moving swift to v2