use old function to make it correct on Android.