switched to swift