Swift 1.0 compability