cleaning up array syntax for newer swift version
tweaked to work with xcode6-beta5