preparing for final changes (add randomseed)