updated to swift 1.1