bug fix
implement new randomize method
bug fix