made changes to address warnings issued by Xcode5