switching to swift