removed unused variable
remove checkplatform function (not complete)