An ab initio method for calculation on many-electron molecular systems with the approximation of the inactive part of a molecule by frozen molecular fragment is presented. In the following method the SCF calculations are performed in two series. First the molecular orbitals resulting from the first SCF calculation (modest basis set) are localized. In the second SCF run, the basis set is extended for the active part of the molecule, while molecular orbitals of the inactive part, selected from the localized set, are kept frozen. The results are in good agreement with the extended basis set calculation.