removed platform specific code