The energy density formalism and the shell structure effects