update for swift 1.1