added Global string and other changes for compilation