modify for  both android and ios