removed iOS specific code.