cleaned up warning on iOS