added iphone and android functions