Application of modified ising model to the helix-coil transition of DNA molecules