added randomseed for geometry