removing platform code