removed optional giving warning in Xcode