now able to randomly divide