adjust for swift 1.1