this should be the finished ios version