issue with random values but everything else works