finish all functions on iPhone side