Enhancing the iterative smoothed particle hydrodynamics method