switch to swift