improvements for 10^3 volume

changes in the code