updated code to match version 2.2.1

works on iOS and changed wording.