final version to test on ios